Packvorschriften lesen
Mithilfe eines Funktionsbausteins ist das Lesen der mittels POF1 oder POP1 erzeugten Packvorschriften sehr einfach.
Der Funktionsbaustein VHUPO_PACK_INSTRUCTION_SHOW liefert alle relevanten Informationen.
DATA ls_pikp_exp LIKE pikp.
DATA ls_cmvhupo_exp LIKE cmvhupo.
DATA ls_pikp_imp LIKE pikp.
ls_cmvhupo_exp-nodia = ‘X’ . “No Dialog
ls_cmvhupo_exp-contxt = ‘3’ . “Display packing instructions
ls_pikp_exp-packnr = packnr “Unique internal packing object number.
ls_pikp_exp-piid = piid . ” ID of packing instruction
*== Use “Display function” to read packing instructions
CALL FUNCTION ‘VHUPO_PACK_INSTRUCTION_SHOW’
EXPORTING
pikp_imp = ls_pikp_exp
cmvhupo_imp = ls_cmvhupo_exp
IMPORTING
pikp_exp = ls_pikp_imp
EXCEPTIONS
locked = 1
not_found = 2
data_missed = 3
data_wrong = 4
quantity_wrong = 5
missed_pos_type = 6
no_new_number = 7
baseunit_wrong = 8
not_saved = 9
inconsistent = 10
marked_for_delete = 11
exsist = 12
material_unkown = 13
quantity_changed = 14
clint_unkown = 15
OTHERS = 16 .
- 7. December: Excel Racing Simulation – Root Vole Race - 7. Dezember 2024
- 5. December: ABAPConf - 5. Dezember 2024
- 4. December: Only a lazy developer is a good developer - 4. Dezember 2024